import request from '/@/utils/request';

const workable_api = import.meta.env.VITE_WORKABLE_API as string;

/**
 * 获取节点执行结果管理列表
 * @param params 
 */
export function getWorkableResultList(params?: object){
    return request({
        url: workable_api + '/result/list',
        method: 'get',
        params: params
    })
}

/**
 * 获取节点执行结果
 * @param params 
 */
export function getWorkableResult(params?: object){
    return request({
        url: workable_api + '/result/info',
        method: 'get',
        params: params
    })
}

/** 删除节点执行结果 */
export function delWorkableResult(params?: object){
    return request({
        url: workable_api + '/result/remove',
        method: 'post',
        data: params
    });
}
